<?php

namespace co2\dev\v0_0_0\bash;

use co2\dev\v0_0_0 as co2;

class mkdir extends co2\bash

{
	public function
	__construct
	(
		$dir,
		array $options=null
	)
	
	{
		$this->cmd='mkdir ';
		
		if(is_array($options))

		{
			if
			(
				in_array('p',$options) || in_array('parent',$options)
			)	$this->cmd.='-p ';
		}
		
		$this->cmd.=$dir;

		$this->exec();
	}
}
